import { render } from "./src/react.js"

const element = {
  type: "div",
  props: {
    children: [
      {
        type: "h1",
        props: {
          children: "Hello World!",
          className: "main",
          style: {color: "red"}
        }
      },
      {
        type: "p",
        props: {
          children: "This is Description",
          style: {fontSize: 20}
        }
      },
      {
        type: "img",
        props: {
          src: "https://wimg.ruan8.com/uploadimg/image/20190131/20190131130327_33929.jpg",
          style: {width: 50, height: 50}
        }
      }
    ]}
};

render(element, document.getElementById("app"));
